package shuai.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity(name="用户")
@Table(name="t_user")
public class User {
	private int userid;
	private String username;
	private String userpwd;
	private int userage;
	private String usersex;
	private String userphone;	
	
	public User() {
	}
	public User(String username,String userpwd, int userage, String usersex, String userphone) {
		this.username = username;
		this.userpwd=userpwd;
		this.userage = userage;
		this.usersex = usersex;
		this.userphone = userphone;
	}
	@Id
	@GeneratedValue
	@Column(name="userid")
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	@Column(name="username")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	@Column(name="userpwd")
	public String getUserpwd() {
		return userpwd;
	}
	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}	
	@Column(name="userage")
	public int getUserage() {
		return userage;
	}
	public void setUserage(int userage) {
		this.userage = userage;
	}
	@Column(name="usersex")
	public String getUsersex() {
		return usersex;
	}
	public void setUsersex(String usersex) {
		this.usersex = usersex;
	}
	@Column(name="userphone")
	public String getUserphone() {
		return userphone;
	}
	public void setUserphone(String userphone) {
		this.userphone = userphone;
	}

	
}
